<div class="box">
  <div class="box-heading"><?php echo $heading_title; ?></div>
  <div class="box-content">
    <div class="box-category">
      <ul>
        <?php foreach ($car_branches as $car_branch) { ?>
        <li>
            <a href="<?php echo $car_branch['href']; ?>" class="active"><?php echo $car_branch['name']; ?></a>        
          <!--
          Date: 03rd December, 2011
          Doer: TienHV
          Goals: Expand the sub car_branches
          
<?php if ($car_branch['car_branch_id'] == $car_branch_id) { ?>
          <a href="<?php echo $car_branch['href']; ?>" class="active"><?php echo $car_branch['name']; ?></a>
          <?php } else { ?>
          <a href="<?php echo $car_branch['href']; ?>"><?php echo $car_branch['name']; ?></a>
          <?php } ?>
-->
          
          <?php if ($car_branch['children']) { ?>
          <ul>
            <?php foreach ($car_branch['children'] as $child) { ?>
            <li>
              <?php if ($child['car_branch_id'] == $child_id) { ?>
              <a href="<?php echo $child['href']; ?>" class="active"> + <?php echo $child['name']; ?></a>
              <?php } else { ?>
              <a href="<?php echo $child['href']; ?>"> + <?php echo $child['name']; ?></a>
              <?php } ?>
            </li>
            <?php } ?>
          </ul>
          <?php } ?>
        </li>
        <?php } ?>
      </ul>
    </div>
  </div>
</div>
